Creates a macro that controls the visibility of objects with predefined criteria.